package com.fang.six.srv.factory;

import com.fang.six.srv.Output;
import com.fang.six.srv.Printer;

public class OutputFactory {

    public Output getOutput() {
        return new Printer();
    }

    public static void main(String[] args) {
        OutputFactory outputFactory = new OutputFactory();
        Computer output = new Computer(outputFactory.getOutput());
        output.keyIn("java");
        output.keyIn("php");
        output.print();

    }

}
